import { axiosMock, delayFn } from '@/services/axiosMock'
import { IDeliveryDetails } from './interface'

axiosMock('default', mock => {
  // 获取亚马逊信息
  mock.onPost(`/tmsapi/track_waybill/getAmazonInfo`).reply(
    delayFn<IDeliveryDetails>(0, () => {
      return {
        success: true,
        data: {
          fbaId: 'FBA180001',
          reId: '123',
          shipFrom: 1,
          dayNum: '14',
          predictTimeStart: '2024-10-01',
          predictTimeEnd: '2024-10-07',
          practicalDeliveryTimeStart: '2024-10-01',
          practicalDeliveryTimeEnd: '2024-10-11',
          predictSignTime: '2024-10-10',
          dynamicSignTime: '2024-10-11',
          practicalSignTime: '2024-10-11',
        },
      }
    }),
  )
})
